/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(function(){
    
    $("#xml_file").on('change',function(){
        var file_name = $(this).val();
        $("#file_name_message").empty().append(file_name);
    });
    
    $('#downloadPage').click(function(e){

            $.generateFile({
                    filename            : 'results.html',
                    content		: $('#results').html(),
                    script		: '/main/download'
            });

            e.preventDefault();
    });
    
});